#pragma once
#include "xKernel/IxDraw.h"
#include "xKernel/IxBrush.h"

[
    default(IxBrush),
    threading(free),
    uuid("81A7EA65-B392-4f5c-A16A-61D15E4AD7D6"),
    coclass
]
class ATL_NO_VTABLE CxBrush
    : public IxBrush
    , public IxDraw
{
public:
    CxBrush();
    virtual ~CxBrush();

public:
    // interface of IxTexture
    HRESULT GetColor(LPCOLORREF pClr);
    HRESULT SetColor(COLORREF clr);

    // interface of IxDraw
    HRESULT Draw(IxCanvas* pCanvas, RECT rcDest);

protected:
    COLORREF    m_clr;
};